home *** CD-ROM | disk | FTP | other *** search
/ Aminet 19 / Aminet 19 (1997)(GTI - Schatztruhe)[!][Jun 1997].iso / Aminet / game / patch / xenon2hd.lha / Xenon2 / Install-Xenon2 < prev    next >
Text File  |  1997-04-02  |  2KB  |  73 lines

  1. (set #CI_unit 0)
  2. (set #CI_drive ("DF%ld:" #CI_unit))
  3.  
  4.  
  5. ;----------------------------
  6.  
  7. ;try to figure out a place where the user usually installs his games
  8. (if (exists "Games:" (noreq) )
  9.     (set @default-dest "Games:")
  10.     (if (exists "SYS:Games" (noreq) )
  11.         (set @default-dest "SYS:Games")
  12.         (if (exists "Work:Games" (noreq) )
  13.             (set @default-dest "Work:Games")
  14.             (if (exists "JEUX:" (noreq) )
  15.                (set @default-dest "JEUX:")
  16.                (set @default-dest "SYS:")
  17.             )
  18.         )
  19.     )
  20. )
  21.  
  22.  
  23. (set @default-dest
  24. (askdir
  25.     (prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
  26.     (help @askdir-help)
  27.     (default @default-dest)
  28.     (disk)
  29. )
  30. )
  31.  
  32. (set #dest (tackon @default-dest @app-name))
  33.  
  34.  
  35. (makedir #dest
  36.     (help @makedir-help)
  37.     (infos)
  38. )
  39.  
  40. ;----------------------------
  41.  
  42. (copyfiles
  43.     (help @copyfiles-help)
  44.     (source "Xenon2HD")
  45.     (dest #dest)
  46.     (infos)
  47. )
  48.  
  49. (copyfiles
  50.     (help @copyfiles-help)
  51.     (source "xenon2hd.readme")
  52.     (dest #dest)
  53.     (infos)
  54. )
  55.  
  56. (message ("\nInsert %s disk 1 into drive %s !" @app-name #CI_drive))
  57.     (if
  58.         (= 0 (run ("disk2file %ld \"%s/Xenon2.disk1\" SKIPROB >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  59.         ("")
  60.         (abort "\"disk2file\" must be in your PATH !")
  61.     )
  62.  
  63. (message ("\nInsert %s disk 2 into drive %s !" @app-name #CI_drive))
  64.     (if
  65.         (= 0 (run ("disk2file %ld \"%s/Xenon2.disk2\" >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  66.         ("")
  67.         (abort "\"disk2file\" must be in your PATH !")
  68.     )
  69.  
  70.  
  71. (exit)
  72.  
  73.